package com.jpa.yuan.control;

import com.jpa.yuan.vo.Person;
import org.springframework.beans.BeanUtils;
import sun.rmi.runtime.Log;

import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

public class test {
    public static void main(String[] args) {
        Calendar instance = Calendar.getInstance();
        Date time1 = instance.getTime();
        instance.add(Calendar.DATE, -10);
        Date date2 = instance.getTime();
        System.out.println(time1.toString());
        System.out.println(date2.toString());
    }
}
